interface Cookie {
    key: string;
    value: string;
}

export const parseCookie = (cookie: string): Cookie[] => cookie.split("; ").map(c => {
    const [key, value] = c.split("=");
    return {key, value}
})